package com.fz.us.oa.core.entity.com;

import com.fz.us.admin.company.entity.BaseFlowEntity;
import com.fz.us.admin.company.entity.User;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Created by ZhuChunXiao on 2017/7/28.
 * 会议考勤
 */
@Entity
@Table(name="ec_meetingsign")
public class MeetingSign extends BaseFlowEntity {
    private static final long serialVersionUID = -9178273154840671773L;

//    /**
//     * 所属会议
//     */
//    private Meeting meeting;
    /**
     * 人员
     */
    private User user;
    /**
     * 考勤情况 1正常 2请假 3缺席
     */
    private int signType;
    /**
     * 考勤地点
     */
    private String signPlace;

    /**
     * 是否已签到 0未签到 1已签到
     */
    private int isSing;

//    @ManyToOne(fetch = FetchType.LAZY)
//    public Meeting getMeeting() {
//        return meeting;
//    }
//
//    public void setMeeting(Meeting meeting) {
//        this.meeting = meeting;
//    }

    @ManyToOne(fetch = FetchType.LAZY)
    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public int getSignType() {
        return signType;
    }

    public void setSignType(int signType) {
        this.signType = signType;
    }

    public String getSignPlace() {
        return signPlace;
    }

    public void setSignPlace(String signPlace) {
        this.signPlace = signPlace;
    }

    public int getIsSing() {
        return isSing;
    }

    public void setIsSing(int isSing) {
        this.isSing = isSing;
    }
}
